<h2>Options</h2>
<div class="content-inner">
	<a href="<?=site_url(array('c' => 'cms_options', 'm' => 'add'))?>" title="Add Item">
		<img src="<?=$image_path?>function/add.gif" width="106" height="31" border="0">
	</a>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont-table-list">
		<thead>
			<tr>
				<th class="small">Edit</th>
				<th class="small">Delete</th>
				<th align="left">Name</th>
				<th align="left">Value</th>
			</tr>
		</thead>
		<tbody>
		<?php if(!empty($options)):$i=0?>
		<?php foreach($options as $item):?>
			<tr class="<?= $i%2==0 ? "odd" : "even"?>">
				<td class="small">
					<a href="<?=site_url(array('c' => 'cms_options', 'm'=>'edit', 'id'=>$item['id']))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td class="small">
					<a href="<?=site_url(array('c' => 'cmsoptions', 'm'=>'delete', 'id'=>$item['id']))?>" onclick="return confirm('Do you want to delete this record?')">
						<img src="<?=$image_path?>icons/del.gif" width="30" height="30" border="0"></a>
				</td>
				<td><?=$item['name']?></td>
				<td><?=$item['value']?></td>
			</tr>
		<?php $i++;endforeach;?>
		<?php else:?>
			<tr>
				<td colspan="5" align="center">Not items</td>
			</tr>
		<?php endif;?>
		</tbody>
	</table>
</div>